package com.ecoolex.chinadutyfree.retailer.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class CouponClassExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public CouponClassExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public CouponClassExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public CouponClassExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        CouponClassExample example = new CouponClassExample();
        return example.createCriteria();
    }

    public CouponClassExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public CouponClassExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public CouponClassExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public CouponClassExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public CouponClassExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCouponClassIdIsNull() {
            addCriterion("couponclass.CouponClassId is null");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdIsNotNull() {
            addCriterion("couponclass.CouponClassId is not null");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdEqualTo(Integer value) {
            addCriterion("couponclass.CouponClassId =", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CouponClassId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdNotEqualTo(Integer value) {
            addCriterion("couponclass.CouponClassId <>", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CouponClassId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdGreaterThan(Integer value) {
            addCriterion("couponclass.CouponClassId >", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CouponClassId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponclass.CouponClassId >=", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CouponClassId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdLessThan(Integer value) {
            addCriterion("couponclass.CouponClassId <", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CouponClassId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdLessThanOrEqualTo(Integer value) {
            addCriterion("couponclass.CouponClassId <=", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CouponClassId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdIn(List<Integer> values) {
            addCriterion("couponclass.CouponClassId in", values, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdNotIn(List<Integer> values) {
            addCriterion("couponclass.CouponClassId not in", values, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.CouponClassId between", value1, value2, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdNotBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.CouponClassId not between", value1, value2, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("couponclass.`Name` is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("couponclass.`Name` is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("couponclass.`Name` =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Name` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("couponclass.`Name` <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Name` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("couponclass.`Name` >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Name` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("couponclass.`Name` >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Name` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("couponclass.`Name` <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Name` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("couponclass.`Name` <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Name` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("couponclass.`Name` like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("couponclass.`Name` not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("couponclass.`Name` in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("couponclass.`Name` not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("couponclass.`Name` between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("couponclass.`Name` not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("couponclass.`Type` is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("couponclass.`Type` is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("couponclass.`Type` =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Type` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("couponclass.`Type` <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Type` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("couponclass.`Type` >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Type` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponclass.`Type` >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Type` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("couponclass.`Type` <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Type` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("couponclass.`Type` <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Type` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("couponclass.`Type` in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("couponclass.`Type` not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.`Type` between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.`Type` not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andImageIsNull() {
            addCriterion("couponclass.Image is null");
            return (Criteria) this;
        }

        public Criteria andImageIsNotNull() {
            addCriterion("couponclass.Image is not null");
            return (Criteria) this;
        }

        public Criteria andImageEqualTo(String value) {
            addCriterion("couponclass.Image =", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Image = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageNotEqualTo(String value) {
            addCriterion("couponclass.Image <>", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Image <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageGreaterThan(String value) {
            addCriterion("couponclass.Image >", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Image > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanOrEqualTo(String value) {
            addCriterion("couponclass.Image >=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Image >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageLessThan(String value) {
            addCriterion("couponclass.Image <", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Image < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageLessThanOrEqualTo(String value) {
            addCriterion("couponclass.Image <=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Image <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageLike(String value) {
            addCriterion("couponclass.Image like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotLike(String value) {
            addCriterion("couponclass.Image not like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageIn(List<String> values) {
            addCriterion("couponclass.Image in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotIn(List<String> values) {
            addCriterion("couponclass.Image not in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageBetween(String value1, String value2) {
            addCriterion("couponclass.Image between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotBetween(String value1, String value2) {
            addCriterion("couponclass.Image not between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("couponclass.Description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("couponclass.Description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("couponclass.Description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Description = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("couponclass.Description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Description <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("couponclass.Description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Description > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("couponclass.Description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Description >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("couponclass.Description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Description < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("couponclass.Description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Description <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("couponclass.Description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("couponclass.Description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("couponclass.Description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("couponclass.Description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("couponclass.Description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("couponclass.Description not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andThresholdPriceIsNull() {
            addCriterion("couponclass.ThresholdPrice is null");
            return (Criteria) this;
        }

        public Criteria andThresholdPriceIsNotNull() {
            addCriterion("couponclass.ThresholdPrice is not null");
            return (Criteria) this;
        }

        public Criteria andThresholdPriceEqualTo(BigDecimal value) {
            addCriterion("couponclass.ThresholdPrice =", value, "thresholdPrice");
            return (Criteria) this;
        }

        public Criteria andThresholdPriceEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ThresholdPrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThresholdPriceNotEqualTo(BigDecimal value) {
            addCriterion("couponclass.ThresholdPrice <>", value, "thresholdPrice");
            return (Criteria) this;
        }

        public Criteria andThresholdPriceNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ThresholdPrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThresholdPriceGreaterThan(BigDecimal value) {
            addCriterion("couponclass.ThresholdPrice >", value, "thresholdPrice");
            return (Criteria) this;
        }

        public Criteria andThresholdPriceGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ThresholdPrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThresholdPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("couponclass.ThresholdPrice >=", value, "thresholdPrice");
            return (Criteria) this;
        }

        public Criteria andThresholdPriceGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ThresholdPrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThresholdPriceLessThan(BigDecimal value) {
            addCriterion("couponclass.ThresholdPrice <", value, "thresholdPrice");
            return (Criteria) this;
        }

        public Criteria andThresholdPriceLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ThresholdPrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThresholdPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("couponclass.ThresholdPrice <=", value, "thresholdPrice");
            return (Criteria) this;
        }

        public Criteria andThresholdPriceLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ThresholdPrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andThresholdPriceIn(List<BigDecimal> values) {
            addCriterion("couponclass.ThresholdPrice in", values, "thresholdPrice");
            return (Criteria) this;
        }

        public Criteria andThresholdPriceNotIn(List<BigDecimal> values) {
            addCriterion("couponclass.ThresholdPrice not in", values, "thresholdPrice");
            return (Criteria) this;
        }

        public Criteria andThresholdPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("couponclass.ThresholdPrice between", value1, value2, "thresholdPrice");
            return (Criteria) this;
        }

        public Criteria andThresholdPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("couponclass.ThresholdPrice not between", value1, value2, "thresholdPrice");
            return (Criteria) this;
        }

        public Criteria andReducePriceIsNull() {
            addCriterion("couponclass.ReducePrice is null");
            return (Criteria) this;
        }

        public Criteria andReducePriceIsNotNull() {
            addCriterion("couponclass.ReducePrice is not null");
            return (Criteria) this;
        }

        public Criteria andReducePriceEqualTo(BigDecimal value) {
            addCriterion("couponclass.ReducePrice =", value, "reducePrice");
            return (Criteria) this;
        }

        public Criteria andReducePriceEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ReducePrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReducePriceNotEqualTo(BigDecimal value) {
            addCriterion("couponclass.ReducePrice <>", value, "reducePrice");
            return (Criteria) this;
        }

        public Criteria andReducePriceNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ReducePrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReducePriceGreaterThan(BigDecimal value) {
            addCriterion("couponclass.ReducePrice >", value, "reducePrice");
            return (Criteria) this;
        }

        public Criteria andReducePriceGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ReducePrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReducePriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("couponclass.ReducePrice >=", value, "reducePrice");
            return (Criteria) this;
        }

        public Criteria andReducePriceGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ReducePrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReducePriceLessThan(BigDecimal value) {
            addCriterion("couponclass.ReducePrice <", value, "reducePrice");
            return (Criteria) this;
        }

        public Criteria andReducePriceLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ReducePrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReducePriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("couponclass.ReducePrice <=", value, "reducePrice");
            return (Criteria) this;
        }

        public Criteria andReducePriceLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ReducePrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReducePriceIn(List<BigDecimal> values) {
            addCriterion("couponclass.ReducePrice in", values, "reducePrice");
            return (Criteria) this;
        }

        public Criteria andReducePriceNotIn(List<BigDecimal> values) {
            addCriterion("couponclass.ReducePrice not in", values, "reducePrice");
            return (Criteria) this;
        }

        public Criteria andReducePriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("couponclass.ReducePrice between", value1, value2, "reducePrice");
            return (Criteria) this;
        }

        public Criteria andReducePriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("couponclass.ReducePrice not between", value1, value2, "reducePrice");
            return (Criteria) this;
        }

        public Criteria andUseLimitIsNull() {
            addCriterion("couponclass.UseLimit is null");
            return (Criteria) this;
        }

        public Criteria andUseLimitIsNotNull() {
            addCriterion("couponclass.UseLimit is not null");
            return (Criteria) this;
        }

        public Criteria andUseLimitEqualTo(Integer value) {
            addCriterion("couponclass.UseLimit =", value, "useLimit");
            return (Criteria) this;
        }

        public Criteria andUseLimitEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UseLimit = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseLimitNotEqualTo(Integer value) {
            addCriterion("couponclass.UseLimit <>", value, "useLimit");
            return (Criteria) this;
        }

        public Criteria andUseLimitNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UseLimit <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseLimitGreaterThan(Integer value) {
            addCriterion("couponclass.UseLimit >", value, "useLimit");
            return (Criteria) this;
        }

        public Criteria andUseLimitGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UseLimit > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseLimitGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponclass.UseLimit >=", value, "useLimit");
            return (Criteria) this;
        }

        public Criteria andUseLimitGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UseLimit >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseLimitLessThan(Integer value) {
            addCriterion("couponclass.UseLimit <", value, "useLimit");
            return (Criteria) this;
        }

        public Criteria andUseLimitLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UseLimit < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseLimitLessThanOrEqualTo(Integer value) {
            addCriterion("couponclass.UseLimit <=", value, "useLimit");
            return (Criteria) this;
        }

        public Criteria andUseLimitLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UseLimit <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseLimitIn(List<Integer> values) {
            addCriterion("couponclass.UseLimit in", values, "useLimit");
            return (Criteria) this;
        }

        public Criteria andUseLimitNotIn(List<Integer> values) {
            addCriterion("couponclass.UseLimit not in", values, "useLimit");
            return (Criteria) this;
        }

        public Criteria andUseLimitBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.UseLimit between", value1, value2, "useLimit");
            return (Criteria) this;
        }

        public Criteria andUseLimitNotBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.UseLimit not between", value1, value2, "useLimit");
            return (Criteria) this;
        }

        public Criteria andProvideStrategyIsNull() {
            addCriterion("couponclass.ProvideStrategy is null");
            return (Criteria) this;
        }

        public Criteria andProvideStrategyIsNotNull() {
            addCriterion("couponclass.ProvideStrategy is not null");
            return (Criteria) this;
        }

        public Criteria andProvideStrategyEqualTo(Integer value) {
            addCriterion("couponclass.ProvideStrategy =", value, "provideStrategy");
            return (Criteria) this;
        }

        public Criteria andProvideStrategyEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideStrategy = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideStrategyNotEqualTo(Integer value) {
            addCriterion("couponclass.ProvideStrategy <>", value, "provideStrategy");
            return (Criteria) this;
        }

        public Criteria andProvideStrategyNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideStrategy <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideStrategyGreaterThan(Integer value) {
            addCriterion("couponclass.ProvideStrategy >", value, "provideStrategy");
            return (Criteria) this;
        }

        public Criteria andProvideStrategyGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideStrategy > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideStrategyGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponclass.ProvideStrategy >=", value, "provideStrategy");
            return (Criteria) this;
        }

        public Criteria andProvideStrategyGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideStrategy >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideStrategyLessThan(Integer value) {
            addCriterion("couponclass.ProvideStrategy <", value, "provideStrategy");
            return (Criteria) this;
        }

        public Criteria andProvideStrategyLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideStrategy < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideStrategyLessThanOrEqualTo(Integer value) {
            addCriterion("couponclass.ProvideStrategy <=", value, "provideStrategy");
            return (Criteria) this;
        }

        public Criteria andProvideStrategyLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideStrategy <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideStrategyIn(List<Integer> values) {
            addCriterion("couponclass.ProvideStrategy in", values, "provideStrategy");
            return (Criteria) this;
        }

        public Criteria andProvideStrategyNotIn(List<Integer> values) {
            addCriterion("couponclass.ProvideStrategy not in", values, "provideStrategy");
            return (Criteria) this;
        }

        public Criteria andProvideStrategyBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.ProvideStrategy between", value1, value2, "provideStrategy");
            return (Criteria) this;
        }

        public Criteria andProvideStrategyNotBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.ProvideStrategy not between", value1, value2, "provideStrategy");
            return (Criteria) this;
        }

        public Criteria andProvideNumberIsNull() {
            addCriterion("couponclass.ProvideNumber is null");
            return (Criteria) this;
        }

        public Criteria andProvideNumberIsNotNull() {
            addCriterion("couponclass.ProvideNumber is not null");
            return (Criteria) this;
        }

        public Criteria andProvideNumberEqualTo(Integer value) {
            addCriterion("couponclass.ProvideNumber =", value, "provideNumber");
            return (Criteria) this;
        }

        public Criteria andProvideNumberEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideNumber = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideNumberNotEqualTo(Integer value) {
            addCriterion("couponclass.ProvideNumber <>", value, "provideNumber");
            return (Criteria) this;
        }

        public Criteria andProvideNumberNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideNumber <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideNumberGreaterThan(Integer value) {
            addCriterion("couponclass.ProvideNumber >", value, "provideNumber");
            return (Criteria) this;
        }

        public Criteria andProvideNumberGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideNumber > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponclass.ProvideNumber >=", value, "provideNumber");
            return (Criteria) this;
        }

        public Criteria andProvideNumberGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideNumber >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideNumberLessThan(Integer value) {
            addCriterion("couponclass.ProvideNumber <", value, "provideNumber");
            return (Criteria) this;
        }

        public Criteria andProvideNumberLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideNumber < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideNumberLessThanOrEqualTo(Integer value) {
            addCriterion("couponclass.ProvideNumber <=", value, "provideNumber");
            return (Criteria) this;
        }

        public Criteria andProvideNumberLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideNumber <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideNumberIn(List<Integer> values) {
            addCriterion("couponclass.ProvideNumber in", values, "provideNumber");
            return (Criteria) this;
        }

        public Criteria andProvideNumberNotIn(List<Integer> values) {
            addCriterion("couponclass.ProvideNumber not in", values, "provideNumber");
            return (Criteria) this;
        }

        public Criteria andProvideNumberBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.ProvideNumber between", value1, value2, "provideNumber");
            return (Criteria) this;
        }

        public Criteria andProvideNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.ProvideNumber not between", value1, value2, "provideNumber");
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeIsNull() {
            addCriterion("couponclass.ProvideStartTime is null");
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeIsNotNull() {
            addCriterion("couponclass.ProvideStartTime is not null");
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeEqualTo(Date value) {
            addCriterion("couponclass.ProvideStartTime =", value, "provideStartTime");
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideStartTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeNotEqualTo(Date value) {
            addCriterion("couponclass.ProvideStartTime <>", value, "provideStartTime");
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideStartTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeGreaterThan(Date value) {
            addCriterion("couponclass.ProvideStartTime >", value, "provideStartTime");
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideStartTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("couponclass.ProvideStartTime >=", value, "provideStartTime");
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideStartTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeLessThan(Date value) {
            addCriterion("couponclass.ProvideStartTime <", value, "provideStartTime");
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideStartTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("couponclass.ProvideStartTime <=", value, "provideStartTime");
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideStartTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeIn(List<Date> values) {
            addCriterion("couponclass.ProvideStartTime in", values, "provideStartTime");
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeNotIn(List<Date> values) {
            addCriterion("couponclass.ProvideStartTime not in", values, "provideStartTime");
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeBetween(Date value1, Date value2) {
            addCriterion("couponclass.ProvideStartTime between", value1, value2, "provideStartTime");
            return (Criteria) this;
        }

        public Criteria andProvideStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("couponclass.ProvideStartTime not between", value1, value2, "provideStartTime");
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeIsNull() {
            addCriterion("couponclass.ProvideEndTime is null");
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeIsNotNull() {
            addCriterion("couponclass.ProvideEndTime is not null");
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeEqualTo(Date value) {
            addCriterion("couponclass.ProvideEndTime =", value, "provideEndTime");
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideEndTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeNotEqualTo(Date value) {
            addCriterion("couponclass.ProvideEndTime <>", value, "provideEndTime");
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideEndTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeGreaterThan(Date value) {
            addCriterion("couponclass.ProvideEndTime >", value, "provideEndTime");
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideEndTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("couponclass.ProvideEndTime >=", value, "provideEndTime");
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideEndTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeLessThan(Date value) {
            addCriterion("couponclass.ProvideEndTime <", value, "provideEndTime");
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideEndTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("couponclass.ProvideEndTime <=", value, "provideEndTime");
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ProvideEndTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeIn(List<Date> values) {
            addCriterion("couponclass.ProvideEndTime in", values, "provideEndTime");
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeNotIn(List<Date> values) {
            addCriterion("couponclass.ProvideEndTime not in", values, "provideEndTime");
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeBetween(Date value1, Date value2) {
            addCriterion("couponclass.ProvideEndTime between", value1, value2, "provideEndTime");
            return (Criteria) this;
        }

        public Criteria andProvideEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("couponclass.ProvideEndTime not between", value1, value2, "provideEndTime");
            return (Criteria) this;
        }

        public Criteria andReceiveNumberIsNull() {
            addCriterion("couponclass.ReceiveNumber is null");
            return (Criteria) this;
        }

        public Criteria andReceiveNumberIsNotNull() {
            addCriterion("couponclass.ReceiveNumber is not null");
            return (Criteria) this;
        }

        public Criteria andReceiveNumberEqualTo(Integer value) {
            addCriterion("couponclass.ReceiveNumber =", value, "receiveNumber");
            return (Criteria) this;
        }

        public Criteria andReceiveNumberEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ReceiveNumber = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReceiveNumberNotEqualTo(Integer value) {
            addCriterion("couponclass.ReceiveNumber <>", value, "receiveNumber");
            return (Criteria) this;
        }

        public Criteria andReceiveNumberNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ReceiveNumber <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReceiveNumberGreaterThan(Integer value) {
            addCriterion("couponclass.ReceiveNumber >", value, "receiveNumber");
            return (Criteria) this;
        }

        public Criteria andReceiveNumberGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ReceiveNumber > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReceiveNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponclass.ReceiveNumber >=", value, "receiveNumber");
            return (Criteria) this;
        }

        public Criteria andReceiveNumberGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ReceiveNumber >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReceiveNumberLessThan(Integer value) {
            addCriterion("couponclass.ReceiveNumber <", value, "receiveNumber");
            return (Criteria) this;
        }

        public Criteria andReceiveNumberLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ReceiveNumber < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReceiveNumberLessThanOrEqualTo(Integer value) {
            addCriterion("couponclass.ReceiveNumber <=", value, "receiveNumber");
            return (Criteria) this;
        }

        public Criteria andReceiveNumberLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.ReceiveNumber <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReceiveNumberIn(List<Integer> values) {
            addCriterion("couponclass.ReceiveNumber in", values, "receiveNumber");
            return (Criteria) this;
        }

        public Criteria andReceiveNumberNotIn(List<Integer> values) {
            addCriterion("couponclass.ReceiveNumber not in", values, "receiveNumber");
            return (Criteria) this;
        }

        public Criteria andReceiveNumberBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.ReceiveNumber between", value1, value2, "receiveNumber");
            return (Criteria) this;
        }

        public Criteria andReceiveNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.ReceiveNumber not between", value1, value2, "receiveNumber");
            return (Criteria) this;
        }

        public Criteria andUseNumberIsNull() {
            addCriterion("couponclass.UseNumber is null");
            return (Criteria) this;
        }

        public Criteria andUseNumberIsNotNull() {
            addCriterion("couponclass.UseNumber is not null");
            return (Criteria) this;
        }

        public Criteria andUseNumberEqualTo(Integer value) {
            addCriterion("couponclass.UseNumber =", value, "useNumber");
            return (Criteria) this;
        }

        public Criteria andUseNumberEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UseNumber = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseNumberNotEqualTo(Integer value) {
            addCriterion("couponclass.UseNumber <>", value, "useNumber");
            return (Criteria) this;
        }

        public Criteria andUseNumberNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UseNumber <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseNumberGreaterThan(Integer value) {
            addCriterion("couponclass.UseNumber >", value, "useNumber");
            return (Criteria) this;
        }

        public Criteria andUseNumberGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UseNumber > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponclass.UseNumber >=", value, "useNumber");
            return (Criteria) this;
        }

        public Criteria andUseNumberGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UseNumber >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseNumberLessThan(Integer value) {
            addCriterion("couponclass.UseNumber <", value, "useNumber");
            return (Criteria) this;
        }

        public Criteria andUseNumberLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UseNumber < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseNumberLessThanOrEqualTo(Integer value) {
            addCriterion("couponclass.UseNumber <=", value, "useNumber");
            return (Criteria) this;
        }

        public Criteria andUseNumberLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UseNumber <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseNumberIn(List<Integer> values) {
            addCriterion("couponclass.UseNumber in", values, "useNumber");
            return (Criteria) this;
        }

        public Criteria andUseNumberNotIn(List<Integer> values) {
            addCriterion("couponclass.UseNumber not in", values, "useNumber");
            return (Criteria) this;
        }

        public Criteria andUseNumberBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.UseNumber between", value1, value2, "useNumber");
            return (Criteria) this;
        }

        public Criteria andUseNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.UseNumber not between", value1, value2, "useNumber");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeIsNull() {
            addCriterion("couponclass.CurrencyType is null");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeIsNotNull() {
            addCriterion("couponclass.CurrencyType is not null");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeEqualTo(String value) {
            addCriterion("couponclass.CurrencyType =", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CurrencyType = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotEqualTo(String value) {
            addCriterion("couponclass.CurrencyType <>", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CurrencyType <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeGreaterThan(String value) {
            addCriterion("couponclass.CurrencyType >", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CurrencyType > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeGreaterThanOrEqualTo(String value) {
            addCriterion("couponclass.CurrencyType >=", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CurrencyType >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLessThan(String value) {
            addCriterion("couponclass.CurrencyType <", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CurrencyType < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLessThanOrEqualTo(String value) {
            addCriterion("couponclass.CurrencyType <=", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CurrencyType <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeLike(String value) {
            addCriterion("couponclass.CurrencyType like", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotLike(String value) {
            addCriterion("couponclass.CurrencyType not like", value, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeIn(List<String> values) {
            addCriterion("couponclass.CurrencyType in", values, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotIn(List<String> values) {
            addCriterion("couponclass.CurrencyType not in", values, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeBetween(String value1, String value2) {
            addCriterion("couponclass.CurrencyType between", value1, value2, "currencyType");
            return (Criteria) this;
        }

        public Criteria andCurrencyTypeNotBetween(String value1, String value2) {
            addCriterion("couponclass.CurrencyType not between", value1, value2, "currencyType");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("couponclass.`Status` is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("couponclass.`Status` is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("couponclass.`Status` =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Status` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("couponclass.`Status` <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Status` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("couponclass.`Status` >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Status` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponclass.`Status` >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Status` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("couponclass.`Status` <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Status` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("couponclass.`Status` <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`Status` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("couponclass.`Status` in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("couponclass.`Status` not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.`Status` between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("couponclass.`Status` not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("couponclass.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("couponclass.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("couponclass.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("couponclass.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("couponclass.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("couponclass.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("couponclass.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("couponclass.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("couponclass.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("couponclass.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("couponclass.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("couponclass.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("couponclass.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("couponclass.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("couponclass.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("couponclass.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("couponclass.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("couponclass.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("couponclass.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("couponclass.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("couponclass.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("couponclass.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("couponclass.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("couponclass.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("couponclass.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("couponclass.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("couponclass.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("couponclass.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("couponclass.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("couponclass.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("couponclass.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("couponclass.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("couponclass.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("couponclass.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("couponclass.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("couponclass.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("couponclass.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("couponclass.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("couponclass.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("couponclass.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("couponclass.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("couponclass.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("couponclass.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("couponclass.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("couponclass.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("couponclass.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("couponclass.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("couponclass.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("couponclass.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("couponclass.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("couponclass.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("couponclass.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("couponclass.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("couponclass.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("couponclass.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("couponclass.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("couponclass.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("couponclass.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("couponclass.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("couponclass.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(CouponClass.Column column) {
            addCriterion(new StringBuilder("couponclass.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("couponclass.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("couponclass.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("couponclass.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("couponclass.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private CouponClassExample example;

        protected Criteria(CouponClassExample example) {
            super();
            this.example = example;
        }

        public CouponClassExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(CouponClass.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(CouponClass.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.chinadutyfree.retailer.entity.CouponClassExample example);
    }
}